import { HttpSrv } from 'lfun-bg-comp';

/** 毕业生管理 */
export class StuGraduationSrv {
  /** 列表 */
  public static async list(params: any) {
    return HttpSrv().get('/school/v1/graduation-student/page', { params: { ...params } });
  }

  /** 设定 */
  public static async graduate(params: any) {
    return HttpSrv.post('/school/v1/graduation-student/student-graduate-status-by-student-id', params);
    //return HttpSrv().patch('/school/v1/current-student/graduate', params);
  }

  /** 制证 */
  public static async credential(params: any) {
    return HttpSrv().patch('/school/v1/graduation-student/graduation-credential', params);
  }

  // 开始毕业
  public static async actionGraduate() {
     return HttpSrv().get('/school/v1/graduation-student/graduation-student-by-school-id');
  }

  // 归档
  public static async placeOnFile() {
    return HttpSrv().get('/school/v1/graduation-student/student-graduate-archive-status-by-school-id');
  }
  public static async allplaceOnFile(school_id: Array<string>) {
    return HttpSrv().post('/school/v1/graduation-student/student-graduate-archive-status-by-school-id', school_id);
  }

}
